<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>量表维度管理</title>
		<link rel="stylesheet" href="../layui/css/layui.css" media="all">
		<style type="text/css">
		.not_border_left {
			border-left: none !important;
			overflow: hidden;
		}
		.dimension-con {
			padding:0 15px 15px 15px;
		}
		.layui-table-view{
			border: none;
		}
		.layui-table-tool{
			margin-bottom: 0;
		}
		.layui-table-body table tbody .layui-table-hover{
			background: #fffdd3 !important;
		}
		.layui-table-body table tbody .layui-table-click{
			background: #fdef9b !important;
		}
		.add-dimension{
			display: none;
			padding: 20px 40px 20px 20px;
		}
		.layui-form-item .required {
			color: #ffb800;  
			font-size: 32px; 
			float: left; 
			margin-left: 5px; 
			margin-top: -30px;
			position: absolute;
			right: -15px;
		}
		.dimensioncoure-con{
			padding: 20px;
			margin-bottom: 100px;
   			margin-top: -70px;
			display:none;
		}
		.checkrole{
			background: transparent;border: none;color: #1E9FFF;font-size: 18px;margin: 10px;
			position: relative;
    		top: 61px;
    		left: 182px;
    		z-index:999999;
		}
		.add-div-dimensionstand{
			display: none;
			padding: 10px;
			width: 90%;
		}
		.layui-table-tool-self{
			display:none;
		}
		
		/* 2019/3/5 djf添加 */
		.add-optioncon{
			display: none;
			padding: 20px;
		}
		.tabdiv-con{
			width: 100%;
		}
		.add-div-aoption{
			display: none;
			padding: 10px;
			width: 90%;
		}
		</style>
	</head>
	<body>
	<!--维度--添加弹窗Start-->
	<div class="add-dimension" id="adddivdimension">
		<form class="layui-form" action="">
		<div class="layui-form-item">
			<label class="layui-form-label">维度名称</label>
			<div class="layui-input-block">
				<input id="inpdimensionName" type="text" placeholder="请输入维度名称" class="layui-input" autocomplete="off">
				<i class="required">*</i>
			</div>
		</div>
	  	<div class="layui-form-item">
		    <label class="layui-form-label">维度描述</label>
		    <div class="layui-input-block">
		    	<textarea id="txtdimensionDescribe" placeholder="请输入维度描述" class="layui-textarea"></textarea>
		    	<i class="required">*</i>
		    </div>
	  	</div>
		</form>
	</div>
	<!--维度--添加弹窗End-->
	
	<!--维度--列表主题部分Start-->
	<div class="dimension-con">
		<blockquote class="layui-elem-quote not_border_left">
			<form class="layui-form" action="">	
				<div class="layui-inline">					
					<div class="layui-input-inline">
						<input id="inpseldimension" type="text" autocomplete="off" placeholder="请输入量表维度名称" class="layui-input">
					</div>
					<div class="layui-inline" style="margin-left: 10px;">
						<button id="btnseldimension" class="layui-btn layui-bg-blue" type="button">查询</button>							
					</div>
					<div class="layui-inline" style="margin-left: 30px;">
						<button id="btnadddimension" class="layui-btn layui-bg-blue" type="button">维度添加</button>							
					</div>
				</div>			
			</form>
		</blockquote>
		
		<table class="layui-hide" id="tabdimension" lay-filter="tabdimension"></table>

		<script type="text/html" id="barDemo">
			<a class="layui-btn layui-bg-blue layui-btn-xs" lay-event="edit">编辑</a>
			<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删 除</a>
			<a class="layui-btn layui-bg-blue layui-btn-xs" lay-event="dimensionsource">维度标准分查询</a>
			<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="addopt">添加选项</a>
		</script>
	</div>
	<!--维度列表主题部分End-->
	
	<!--量表维度标准分--主体部分Start-->
	<div class="dimensioncoure-con" id="dimensioncourecon">
	<span id="checkrole" class="checkrole">当前维度： 学习焦虑</span>
		<table class="layui-hide" id="tabdimensioncoure" style="position: absolute;" lay-filter="tabdimensioncoure"></table>
		<input id="checkdimensionid" type="text" style="display:none" class="layui-input">
		<script type="text/html" id="toolbarDemo">
				<a class="layui-btn layui-bg-blue" style="margin: 10px;" lay-event="coureadd">创建维度标准分</a>
			</script>
		
		<script type="text/html" id="dimencourtoolbar">
				<a class="layui-btn layui-bg-blue layui-btn-xs" lay-event="coureedit">编辑</a>	
				<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="couredelete">删除</a>
			</script>
	</div>
	<!--量表维度标准分--主体部分End-->
	
	<!--维度标准分的添加,弹窗Start-->
	<div id="adddivdimensionstand" class="add-div-dimensionstand">
		<form class="layui-form" action="">
		<div class="layui-form-item">
			<label class="layui-form-label">维度等级</label>
			<div class="layui-input-block">
				<input id="inpdimensionLev" type="text" placeholder="请输入维度等级" class="layui-input" autocomplete="off">
				<i class="required">*</i>
			</div>
		</div>
	  	<div class="layui-form-item">
		    <label class="layui-form-label">维度分起始值</label>
		    <div class="layui-input-block">
		    	<input id="inpstartScore" type="number" max="100" placeholder="请输入维度分起始值" class="layui-input" autocomplete="off">
		    	<i class="required">*</i>
		    </div>
	  	</div>
	  	<div class="layui-form-item">
			<label class="layui-form-label">维度分结束值</label>
			<div class="layui-input-block">
				<input id="inpendScore" type="number" max="100" placeholder="请输入维度分结束值" class="layui-input" autocomplete="off">
				<i class="required">*</i>
			</div>
		</div>
	  	<div class="layui-form-item">
		    <label class="layui-form-label">结果描述</label>
		    <div class="layui-input-block">
		    	<textarea id="inpresultDescription" placeholder="请输入结果描述" class="layui-textarea"></textarea>
		   		<i class="required">*</i>
		    </div>
	  	</div>
	  	<div class="layui-form-item">
			<label class="layui-form-label">专家建议</label>
		    <div class="layui-input-block">
		    	<textarea id="inpexpertAdvice" placeholder="请输入专家建议" class="layui-textarea"></textarea>
		    	<i class="required">*</i>
		    </div>
		</div>
		</form>
	</div>
	<!--维度标准分的添加,弹窗Start-->
		
		
		
	<!-- 2019/3/5 djf添加 -->
	<!--选项添加--弹窗Start-->
	<div class="add-optioncon" id="addoptionsion">
		<div class="layui-row">
			<div class="layui-col-md1">
				<button id="btnaddaoption" class="layui-btn layui-bg-blue" type="button">选项添加</button>
			</div>
			<div class="layui-col-md1">
				<label class="layui-form-label" style="font-size: 18px;width: 100px;">当前维度：</label>
			</div>
			<div class="layui-col-md6">
				<label id="inpdimensionNametext" class="layui-form-label" style="font-size: 18px;width: auto;color: rgb(84, 84, 84);"></label>
				<input id="inpoptiontitleid" type="text" class="layui-input" style="display:none">
			</div>
		</div>
		<div class="tabdiv-con">
			<table id="taboptioncon" lay-filter="taboptioncon" class="layui-table"></table>
		</div>
		<script type="text/html" id="barDemooption">	
			<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="deleteoption">删除</a>
		</script>
	</div>
	<!--维度添加--弹窗End-->
	<!--选项单独添加,弹窗Start-->
	<div id="adddivaoption" class="add-div-aoption">
		<form class="layui-form" action="">
		<div class="layui-form-item divseloptionchange">
			<label class="layui-form-label">选项</label>
			<div class="layui-input-block">
				<select id="seloptionchange" name="option">
			        <option value="00">请选择题目选项</option>
			        <option value="1">A</option>
			        <option value="2">B</option>
			        <option value="3">C</option>
			        <option value="4">D</option>
			        <option value="5">E</option>
			        <option value="6">F</option>
			        <option value="7">J</option>
			    </select>
			    <i class="required">*</i>
			</div>
		</div>
	  	<div class="layui-form-item">
		    <label class="layui-form-label">选项分值</label>
		    <div class="layui-input-block">
		    	<input id="inpoptionscore" type="number" min="1" max="100" placeholder="请输入选项分值" class="layui-input" autocomplete="off">
		    	<i class="required">*</i>
		    </div>
	  	</div>
	  	<div class="layui-form-item">
		    <label class="layui-form-label">选项内容</label>
		    <div class="layui-input-block">
		    	<textarea id="inpoptioncontent" placeholder="请输入结果描述" class="layui-textarea"></textarea>
		   		<i class="required">*</i>
		    </div>
	  	</div>
		</form>
	</div>
	<!--选项单独添加,弹窗Start-->
	
	<!-- 设置默认维度（在测评的时候该维度默认包含在内）T：是，F：不是 -->
	<script type="text/html" id="isdefaultdimensionbar">
		<input type="checkbox" name="{{d.isDefault}}" value="{{d.dimensionid}}" title="默认" lay-filter="lockDemo" {{ d.isDefault=="T" ? 'checked' : '' }}>
	</script>
		
	<script src="../js/jquery-3.3.1.js"></script>
	<script src="../layui/layui.js" charset="utf-8"></script>
	<script src="../js/dimensionManagement/dimension.js"></script>
	</body>
</html>
